﻿using System;
using System.ComponentModel.DataAnnotations;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace PMSMVC.Models
{
    [Table("Project")]
    public class Project
    {
        [Key,DatabaseGenerated(DatabaseGeneratedOption.None),Display(Name = "项目编号")]
        public string ProjectID { get; set; }
        [Display(Name = "项目名称")]
        public string ProjectName { get; set; }
        [Display(Name = "录入时间"),DataType(DataType.Date)]
        public DateTime RecordTime { get; set; }
        [Display(Name = "录入人"),StringLength(20)]
        public string UserID { get; set; }
        [Display(Name = "项目状态"), StringLength(10)]
        public string ProjectStatus { get; set; }
        public virtual List<DocTask> DocTasks { get; set; }
        public virtual List<ProductType> ProductTypes { get; set; }
    }

    public class ProjectwithProductTypes
    {
        public Project Project;
        public List<ProductType> ProductTypes;
    }
} 